std::basic_istream::sync
From Cppreference
< cpp | io | basic istream
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Input/output library | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| std::basic_istream | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| int sync();
| ||
Fills the input cache buffer with data from the underlying input device.
Contents |
Parameters
(none)
Return value
If the stream is buffered and the function is successful, 0 is returned. If the stream is unbuffered, -1 is returned. In the case of error, setstate(badbit) is called and depending on exceptions bitmask, exception is thrown.
Example
| This section is incomplete |
See also
| synchronizes with the underlying storage device (public member function of std::basic_ostream) | |